<div class="Main_Right" >
	<div class="Main_Right_Top">
		<span></span>
	</div>
	<div class="Main_Right_Content" id="Main_Right_Content">
		<div class="Main_Right_Title">
			当前位置：学校管理 --> 课程管理 --> 课程列表
		</div>
		<div class="Main_handleBar check_pass" id="Main_handleBar" style="display: none">
			<div class="Main_handleBar_head"></div>
			<div class="Main_handleBar_body">
				<p></p>
			</div>
		</div>
		<div class="Main_handleBar check_pass" id="Main_handleBar" style="display: none">
			<div class="Main_handleBar_head"></div>
			<div class="Main_handleBar_body">
				<p></p>
			</div>
		</div>
		<div class="ToolBar">
			<div class="frame-main-cont-head" >
				<div class="js-component-toolbar nui-toolbar " >
					<div class="nui-toolbar-item">
						<div  role="button" tabindex="0" class="js-component-button nui-mainBtn nui-btn nui-btn-hasIcon nui-mainBtn-hasIcon">
							<span  class="nui-btn-icon">
								<b class="js-component-icon nui-ico nui-ico-plus" style="background-image: url(${displayStaticLocation?default("")}admin/image/whiteplus.png);background-position:top;background-repeat:no-repeat">&nbsp;&nbsp;</b>
							</span>
							<span class="nui-btn-text" onclick="inserNew('${base}/course/toadd.action')">新增课程</span>
						</div>
					</div>
					<div class="nui-toolbar-item">
						课程中文名称：
						<input  type="text" id="chineseName" name="chineseName" value='${chineseName!""}'>
						课程英文名称：
						<input type="text" id="englishName" name="englishName" value='${englishName!""}'>
					</div>
					<div class="nui-toolbar-item">
						<div style="float:right;" role="button" tabindex="0" class="js-component-button nui-mainBtn nui-btn ">
							<span style="border-radius:3px"   class="nui-btn-text" onclick="toSubmit();" >搜索</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		<form name="searchForm" id="searchForm" action="" method="post" >
		<!-- Main_information end -->
		<div class="Main_Right_ListTable">
			<div class="Main_Right_SearchTable_Title" style="display:None">
				<span class="Main_Right_SearchTable_Title_Left"></span>
				课程管理 <span class="Main_Right_SearchTable_Title_Right"></span>
			</div>
			<table   width="100%" >
				<thead class="nui-table-head" >
					<tr class="nui-table-row">
						<th width="35%" class="nui-table-cell">课程中文名称</th>
						<th width="35%" class="nui-table-cell">课程英文名称</th>
						<th width="30%" class="nui-table-cell">操作</th>
					</tr>
				</thead>
	            <#assign count=0 />   
	            <#if courseList?exists>
	            	<#assign count=courseList.size() />   
		            <#list courseList as obj>
		            <tr class="odd" onmouseover="this.className='even'" onmouseout="this.className='odd'">
		              <td class="nui-table-cell">${(obj.chineseName)?if_exists}</td>
		              <td class="nui-table-cell">${obj.englishName?if_exists}</td>
		              <td class="nui-table-cell">
		              	<a onclick="viewDetail('${base}/course/toview.action?objId=${(obj.id)}')" href="#">查看</a>
		              	<a onclick="viewUpdate('${base}/course/toedit.action?objId=${(obj.id)}')" href="#">编辑</a>
		              	<a onclick="dele('${obj.id}','${base}/course/del.action','${base}/course/list.action')" href='####'">删除</a>
		              </td>
		            </tr>
		            </#list>
		        </#if>
    	        <#if (pageSize - count - 1) &gt; 0>
			        <#list 0..(pageSize - count - 1) as i>
		            <tr class="odd" onmouseover="this.className='even'" onmouseout="this.className='odd'">
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              </tr>
		           </#list>
           		</#if>
			</table>
			<div class="ToolFooter" style="margin-top:-1px;">
      			<@pageMacro.showPage page/>
      		</div>
      		<script language = 'JavaScript'>
		       function changePage(cpage){
			        var theurl='${base}/course/list.action?currentPage='+cpage;
			        $("#home_panel").load(theurl);
		       }
		    </script>  
		</div>
		</form>
	</div>
</div>

<script type="text/javascript"> 
	jQuery(document).ready(function($) {
		 	$( "#starDate" ).datepicker();
			$( "#starDate" ).datepicker( "option", "dateFormat",'yy-mm-dd' );
			$( "#endDate" ).datepicker();
			$( "#endDate" ).datepicker( "option", "dateFormat",'yy-mm-dd' );
 
	});
function toSubmit(){ 
		var  englishName=$("#englishName").val();
		var  chineseName=$("#chineseName").val();
		 $("#home_panel").load("${base}/course/list.action",{"englishName":englishName,"chineseName":chineseName});		
}
</script>

